Role correlation

ABSTRACT

Techniques for correlating different results of role grouping includes receiving two sets of grouping of nodes on a network, grouping of the nodes according to connection characteristics of the nodes in the groups, each of the sets having associated identifications and correlating associated identifications of one set with those of the other set so that the two groups have the same identifications, if the member hosts of each set of groups have nearly identical connection habits.

[0001] This application claims the benefit of U.S. Provisional Application Serial No. 60/423,557, filed Nov. 04, 2002 entitled “ALGORITHMS FOR NETWORK ANOMALY DETECTION IN THE MAZU NETWORK PROFILER”; U.S. Provisional Application Serial No. 60/427,294, filed Nov. 18, 2002 entitled “ANOMALY DETECTION AND ROLE CLASSIFICATION IN A DISTRIBUTED COMPUTING NETWORK” and U.S. Provisional Application Serial No. 60/429,050, filed Nov. 25, 2002 entitled “ROLE CLASSIFICATION OF HOSTS WITHIN ENTERPRISE NETWORKS BASED ON CONNECTION PATTERNS.”

BACKGROUND

[0002] This invention relates generally to network management.

[0003] Enterprises have internal networks (intranets) that handle communications throughout an entire geographically dispersed organization. Managing such networks is increasingly costly, and the business cost of network problems increasingly high. Managing an enterprise network involves a number of inter-related activities including establishing a topology, establishing a policy and monitoring network performance. Network topology can have a significant impact on the cost of building a network and on the performance of the network once it has been built. An increasingly important aspect of topology design is network segmentation. In an effort to provide fault isolation and mitigate the spread of worms, enterprises segment their networks using firewalls, routers, VLANs and other technologies. In a network different users have different privileges. Some users have unlimited access to external networks while other users have highly restricted access. Some users may be limited in the amount of bandwidth they may consume on particular routes, and so on. The number of policies is open ended. Operators also monitor network performance. Almost every complex network suffers from various localized performance problems. Network managers detect these problems and take action to correct them.

[0004] Another aspect of network management is detecting and dealing with security violations. Increasingly, networks are coming under attack. Sometimes the targets are chosen at random (e.g. most virus-based attack). Sometimes the targets are chosen intentionally (e.g., most denial of service attacks). These attacks often involve compromised computers within the enterprise network. Early detection of attacks plays a critical role in reducing damage to networks and systems coupled to the networks.

SUMMARY

[0005] Conducting these activities on a host-by-host basis is not feasible for large networks. Network managers need a technique to structure views of networks to allow them to make decisions at larger levels of granularity. Today, this is most often done on an ad hoc basis that relies on humans best guesses about logical relationships among computers on the network and among users of those computers.

[0006] According to an aspect of the invention, a method of correlating different results of role grouping, includes receiving two sets of grouping of nodes on a network, grouping of the nodes according to connection characteristics of the nodes in the groups, each of the sets having associated identifications (ID's) and correlating IDs of one set with those of the other set so that the two groups have the same ID, if the member hosts of each set of groups have nearly identical connection habits.

[0007] Other embodiments include correlating using a unique host identifier that does not change. DNS names are used as the unique identifiers and changes in IP addresses are dynamically updated. Role correlating compares the received results from a grouping process by updating the ID set of members in the groups so that ID of member in one set are equal to ID of members of the other set if the members of one set and the other set are considered to be the same group. The members one set and the other set are considered to be in the same group if, the connection habits of the members of one set and those of the other set are similar. Correlating eliminates differences between the two host sets so that connection patterns can be compared. The differences are the set of nodes that existed in one set but were removed in the other set, and the set of nodes that only appear in the other set. Correlating groups checks similarity between the connection habits of hosts in each group.

[0008] According to an additional aspect of the invention, a computer implemented method, includes correlating assigned identifiers associated with groups of hosts on a network that are in a first set of the groups, with assigned identifiers that are associated with groups of hosts on the network in a second set of the groups, so that for the two sets of groups, those groups of hosts in the two sets that have substantially identical connection habits will have the same assigned identifiers.

[0009] According to an additional aspect of the invention, an apparatus includes a processor, a memory and a computer readable medium storing a computer program product for correlating groupings of nodes in a network, including instructions for causing the computer to receive two sets of results of nodes on a network associated into groups according to connection characteristics of the nodes in the groups, each of the sets having associated ID's and correlate IDs of one set with those of the other set so that the two groups have the same ID, if the member hosts of each set of groups have nearly identical connection habits.

[0010] According to an additional aspect of the invention, an apparatus includes a processor, a memory and a computer readable medium storing a computer program product for correlating groupings of nodes in a network, including instructions for causing the computer to correlate assigned identifiers associated with groups of hosts on a network that are in a first set of the groups, with assigned identifiers that are associated with groups of hosts on the network in a second set of the groups, so that for the two sets of groups, those groups of hosts in the two sets that have substantially identical connection habits will have the same assigned identifiers.

[0011] According to an additional aspect of the invention, a computer program product residing on a computer readable medium for correlating groupings of nodes in a network, comprising instructions for causing the computer to receive two sets of results of nodes on a network associated into groups according to connection characteristics of the nodes in the groups, each of the sets having associated ID's and correlate IDs of one set with those of the other set so that the two groups have the same ID, if the member hosts of each set of groups have nearly identical connection habits.

[0012] According to an additional aspect of the invention, a computer program product residing on a computer readable medium for correlating groupings of nodes in a network, comprising instructions for causing the computer to correlate assigned identifiers associated with groups of hosts on a network that are in a first set of the groups, with assigned identifiers that are associated with groups of hosts on the network in a second set of the groups, so that for the two sets of groups, those groups of hosts in the two sets that have substantially identical connection habits will have the same assigned identifiers.

[0013] Role grouping assists in the management and understanding of large enterprise networks. Role grouping involves bucketing hosts into related roles, or groups, based on observed connection patterns. Role correlation can correlate different versions of role groupings taking into consideration changes caused by hosts being added, deleted from a network or changing roles in the network. While, the grouping process assigns nodes to groups correlation correlates the groups produced by different runs of the grouping process.

[0014] The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

[0015]FIG. 1 is a block diagram of a network including anomaly detection.

[0016]FIG. 2 is a block diagram depicting exemplary details of anomaly detection.

[0017]FIG. 2A is a flow chart of a process to identify client server pairs.

[0018]FIG. 3 is a block diagram depicting an aggregator.

[0019]FIG. 4 is a block diagram depicting a connection table.

[0020]FIG. 4A is a block diagram of an alternative connection table.

[0021]FIG. 5 is a block diagram depicting a record in the connection table.

[0022]FIG. 6 is a block diagram depicting an arrangement of connection tables.

[0023]FIG. 7 is a block diagram depicting a clustered aggregator.

[0024]FIG. 8 is a flow chart of processes on the aggregator.

[0025]FIG. 9 is a flow chart depicting a generalized process for detection of anomalies and classification of events.

[0026]FIG. 10 is a flow chart depicting event processing.

[0027]FIG. 11 is a flow chart depicting denial of service attack processing.

[0028]FIG. 12 is a flow chart depicting details of denial of service attack processing.

[0029]FIG. 13 is a flow chart depicting scanning detection.

[0030]FIG. 14 is a flow chart depicting worm detection

[0031]FIG. 15 is a diagram depicting worm propagation.

[0032]FIG. 16 is a flow chart of an unauthorized access detection process.

[0033]FIG. 17 is a flow chart of a new host detection process.

[0034]FIG. 18 is a flow chart of a failed host detection process.

[0035]FIG. 19 is a block diagram of a network.

[0036]FIG. 20 is a diagram depicting a grouping.

[0037]FIG. 21 is a flow chart depicting a grouping process.

[0038]FIG. 22 is a flow chart depicting a group forming process.

[0039]FIG. 23 is a flow chart depicting details of the group forming process.

[0040]FIG. 24 is a diagram depicting a stage in grouping nodes.

[0041]FIG. 25 is a flow chart depicting details of a group merging process.

[0042]FIGS. 26-28 are flow charts depicting details of a group correlation process.

[0043]FIGS. 29-30 depict screens in a feedback mechanism.

[0044]FIG. 31 depicts a flow chart in a feedback mechanism.

[0045]FIGS. 32-36 depicts screens for reports.

[0046]FIGS. 37-40 depicts screens for settings.

DETAILED DESCRIPTION

[0047] Referring to FIG. 1, an anomaly detection system 10 to detect anomalies and process anomalies into events is shown. The anomaly detection system 10 can be used to detect denial of service attacks (DoS attacks), unauthorized access attempts, scanning attacks, worm propagation, network failures, and addition of new hosts in a network 18. The system 10 includes collector devices 12 and at least one aggregator device 14 and an operator console 16 that communicates with and can control collector devices 12 and the at least one aggregator device 14. The collector devices 12 and the at least one aggregator 14 are disposed in the network 18. The collector devices 12 connect to network devices, 15 e.g., switches, hosts, routers, etc. in line, or via a tap, e.g., using mirror, SPAN ports or other passive link taps. The collector devices 12 collect information such as source and destination addresses, transport protocol, source and destination ports, flags, and length. Periodically, the collector devices 12 send to the aggregator 14 a record of the number of packets, bytes, and connections between every host pair observed by the collector 12, broken down by port and protocol. In addition, the collector devices 12 send summary information concerning flags seen on TCP packets.

[0048] The aggregator 14 can also execute a grouping process 200 that efficiently partitions hosts on a network into groups in a way that exposes the logical structure of the network 18. The grouping process 200 assigns nodes to groups and includes a classification process 200 a that classifies hosts by groups and a correlation process 200 b that correlates groups. Details of the grouping process are discussed below.

[0049] Referring to FIG. 2, collectors 12 are shown disposed to sample or collect information from network devices 15, e.g., switches as shown. The collector devices 12 send the information to the aggregator 14 over the network 18. The collectors 12 in one configuration sample all traffic from a downstream network 19 a provided that the traffic traverses the switches 15, whereas in another configuration the collectors 12 sample traffic from downstream network 19 b that enters and leaves the switches 15.

[0050] The architecture is based on an examination of current bytes/second, packets/second, connections/hour statistics, and so forth. The architecture compares these to historical data. The data collectors are devices that are coupled actively or passively on a link and collect the above mentioned as well as other statistics. Data collects 12 can be connected via a tap or can span port on a monitored device (e.g., router, etc.) over intervals of time. Over such intervals of time, e.g., every 30 seconds, the data collectors 12 send reports (not shown) to an aggregator. The report can be sent from the data collector to the aggregator over the network being monitored or over a hardened network (not shown).

[0051] There are a defined number of sources, a defined number of destinations, and a defined number of protocols on a given network. Over a defined interval (typically 30 seconds), the data collectors 12 monitor all connections between all pairs of hosts and destinations using any of the defined protocols. At the end of each interval, these statistics are summarized and reported to the aggregator 14. The values of the collected statistics are reset in the data collectors after reporting. The number of connections between ports using an unknown protocol is also monitored.

[0052] If more than one data collector saw the same source and destination communicating, the following could have occurred. The data collectors could be in parallel and each saw a portion of the communication. Alternatively, the data collectors could be in series and both data collectors saw the entire communication. Given the rate at which parallel connections may change, the aggregator assumes that the data collectors are in a series connection. The maximum of two received values is taken as a value for the connection and it is assumed that the lower value reflects dropped packets. Other arrangements are possible.

[0053] Referring to FIG. 2A, an aspect of data collection 22 on the collectors 12 is shown. Data collection is used to collect connection information to identify host connection pairs. Data collection uses heuristics to identify connections such as host A sending packets to host B, host B sending packets to host A. In addition, the data collection 22 determines host A_(client) host B_(server) and host B_(client) and host A_(server). To determine when hosts A and B are operating as clients or servers, data collection process determines 23 a the protocol used in a connection. If the protocol is TCP, then the process identifies 23 b, which host sent a sync packet, and which host sent a synch_ack packet. The source of the sync packet is the client and the source of the synch_ack is the server.

[0054] If the protocol is not TCP, e.g., UDP, the data collectors 12 will determine the ports that the hosts communicate over. If the hosts are transacting over a well-know port 23 c, the data collector will examine a list of well-know ports. The list will determine 23 d the source of the server from the list. The list is populated with identifications of hosts and is populated by a process that looks at previous sources of synch_ack packets. The host that sends the synch_ack packet back is assumed to be the server.

[0055] If a connection involves two ports, neither of which is known 23 e, then the process will assume that the host that connects to the lower port number is the server process.

[0056] The host server/client statistics are useful in anomaly detection. For instance, these statistics are useful when attempting to identify worm intrusions and other types of intrusions.

[0057] Referring to FIG. 3, the aggregator 14 is a device (a general depiction of a general purpose computing device is shown) that includes a processor 30 and memory 32 and storage 34. Other implementations such as Application Specific Integrated Circuits are possible. The aggregator 14 includes a process 36 to collect data from collectors 12 and a process 38 to produce a connection table 40. In addition, the aggregator includes anomaly analysis and event process 39 to detect anomalies and process anomalies into events that are reported to the operator console or cause the system 10 to take action in the network 18. Anomalies in the connection table can be identified as events including denial of service attacks, unauthorized access attempts, scanning attacks, worm propagation, network failures, addition of new hosts, and so forth.

[0058] Referring to FIG. 4, the connection table 40 is a data structure that maps each host (e.g., identified by IP address) to a “host object” that stores information about all traffic to or from that host. In one implementation of the table, source address is one dimension, destination is a second dimension and time is a third dimension. The time dimension allows a current record and historical records to be maintained.

[0059] Using IP addresses to uniquely identify hosts could be inadequate in environments with dynamic DHCP assignments. Thus alternatively, the administrator can configure a DHCP server to produce a MAC address to IP address map. The MAC address to IP address map is sent as a flat file to the aggregator 14. Thereafter, when a data collector 12 reports an IP address and counter to/from values, the aggregator 14, for each IP address checks in the most recent map. If the IP address is found in the map, then the host is managed by a DHCP server and the host ID is the host's MAC address, otherwise the Host ID is the host IP address.

[0060] The host object, e.g., 40 a of a host “A” also maps any host (IP address) “B” with which “A” communicates to a “host pair record” that has information about all the traffic from “A” to “B” and “B” to “A”. This two-level map enables the system 10 to efficiently obtain summary information about one host and about the traffic between any pair of hosts, in either direction.

[0061] Hashing is used to “lookup or update” information about any host or host pair on the network 18. The connection table 40 includes additional structure to allow efficient traversal of all hosts or host pairs and supports efficient representation of groups of related hosts, e.g., a role grouping mechanism as discussed below. Alternatively, the role grouping can be stored separately from the connection table.

[0062] The connection table uses a hash map from host identifiers (IP or MAC addresses) to “Host” objects, as discussed. Each Host object maintains aggregate traffic statistics for the associated host (“H”), and a hash map (a 2nd level hash map) from host identifiers (IP addresses) of peers of host H (i.e., hosts that host H had communicated with) as “HostPair” objects. Each HostPair object maintains traffic statistics for each pair of hosts (H and H's peer). To allow more efficient, analysis HostPair objects are duplicated across Host objects. For instance, the HostPair “AB” is maintained both in the hash map within Host “A” and in the hash map within Host “B.” Group information is embedded in the connection table, with each Host object storing information about the group that the associated host belonged to. The connection table maintains a list of all groups and their member hosts.

[0063] Referring to FIG. 4A, in an alternative implementation 41 of the connection table 40, the connection table 41 is split into two hash maps 41 a and 41 b, a “host hash” map 41 a and a “host pair” hash map 41 b. The “host hash” map 41 a maps host identifiers (IP or MAC addresses) to new Host objects 43. Each new Host object 43 has the aggregate traffic statistics for the associated host, as well as a list of the host identifiers (IP or MAC addresses) of all the peers of that host 44. The “host pair” hash map 41 b maps pairs of host identifiers to Host Pair objects 45 that maintain traffic statistics 46 for pairs of hosts. In this implementation Host Pair objects 45 need not be longer duplicated, as discussed above.

[0064] For example, if host A and host B communicate, then the host map has a Host object 43 for A that lists B as a peer, the host map has a Host object 43 for B that lists A as a peer, and the host pair map has a Host Pair object 45 for AB. Group information is stored in a separate table 47 that is loaded, saved, and otherwise managed separately from the traffic statistics in the connection table. It does not need to be in memory unless it is actually needed.

[0065] Factoring out the group information and moving from many hash maps (top level map, plus one 2nd level map per Host object) to just two makes this implementation of the connection table more compact and decreases memory fragmentation, improving aggregator performance and scalability.

[0066] In one embodiment, only “internal hosts” (defined based on configurable IP address ranges) are tracked individually as described above. The aggregator 14 buckets all other (“external”) hosts into a fixed number of bins according to 8- or 16-bit CIDR (Classless Inter-domain Routing) prefix. This approach preserves memory and computational resources for monitoring of the internal network 18 but still provides some information about outside traffic. Other arrangements are possible, for instance bucketing can be turned off if desired, so that each external host is tracked individually.

[0067] Referring to FIG. 5, exemplary contents of the host object 40 a are depicted. Similar statistics can be collected for host objects 43. As shown, the contents of the host object 40 a in the connection table 40 include a measure of the number of bytes, packets, and connections that occurred between hosts during a given time-period, here on a daily basis. Data is broken down per-protocol for every well-known transport protocol (e.g., TCP, UDP, ICMP, and the 132 others defined by the “Internet Assigned Numbers Authority” and for several hundred well-known application-level protocols (e.g., SSH, HTTP, DNS, and so forth). For every application-level protocol, and for every pair of hosts “A” and “B”, the Connection Table stores statistics for traffic from host A to host B and from host B to host A both for the case where “A” is the server and the case where “B” is the server. Unknown protocols are counted together.

[0068] Since most hosts only use a small fraction of the well-known protocols, the footprint of the data structure is kept manageable by storing protocol-specific records as (protocol, count) key-value pairs. Further, since the protocol distribution is typically skewed (a few protocols account for the majority of traffic on each host), key-value pairs are periodically sorted by frequency to improve amortized update time.

[0069] Individual host records have no specific memory limit. If a particular host connects with many other hosts and uses many protocols, all that information will be recorded. However, the total memory used by the Aggregator 14 is bounded in order to avoid denial of service attacks on the Aggregator 14. For example, an attacker spoofing random addresses can cause the Aggregator 14 to allocate new host structures and quickly consume memory. If an Aggregator ever exceeds a memory utilization threshold “m_{hi}”, it de-allocates records until its memory utilization falls below “m_{hi}”. Several different algorithms can be used for picking records to de-allocate. Some of the algorithms that can be used include random eviction, picking low-connectivity hosts first, high-connectivity hosts first, and most recently added hosts first. Similar measures are also taken on the probes 12 to ensure high performance and limit Probe-Aggregator communication overhead.

[0070] Referring to FIG. 6, the aggregator 14 uses different connection tables 40 to track data at different time scales. A first connection table 49 a is a time-slice connection table that operates on the smallest unit of time, e.g., (a time-slice}. A time-slice can be e.g., less than 30 seconds to maybe several minutes. The time-slice connection table is the sum of records received from all collectors during that the time-slice period, corrected for duplicates.

[0071] Aggregator analysis algorithms 39 operate primarily on a short update period (SUP} Connection Table 49 b, which is the sum of time-slices across a period of, e.g., 10 to 30 minutes. A set of SUP connection tables is summed into a third connection table 49 c covering a long update period (LUP), e.g., 2 to 24 hours. For each recorded parameter (such as TCP bytes from host “A” to host “B”), SUP and LUP tables track both the sum and sum of squares of values of the recorded parameter. These two values allow the aggregator to compute both the mean and variance of the recorded parameter across the table's time period. Given “N” samples x₁, x₂, . . . x_(n) mean is sum over the period of the samples divided by the number of samples. The variance is derived from the mean and sum of squares.

[0072] At the end of each long update period, that period's values are merged into a profile connection table that includes historical information for the corresponding period of the week. Merging uses the equation below for each value in the profile table. For instance, a LUP table covering the period 12 pm to 6 pm on a Monday is merged into a profile table with historical information about Mondays 12 pm to 6 pm. Values in the profile table are stored as exponentially weighted moving averages (EWMAs). At time “t”, a new value “x_(t)” (from the LUP table, for example) is added to the EWMA for time “t-1”, denoted by “m_(t-1)”, to generate a new EWMA value according to the following Equation:

m _(t) =αx _(t)+(1−α)m _(t-1)

[0073] where α can be tuned to trade off responsiveness to new values against old ones. EWMAs provide a concise way of representing historical data (both values and variance) and adapting to gradual trends. Recent data is compared to historical profiles from the same time of, an historical time span, e.g., a week because the week is the longest time span that generally shows well-defined periodicity in traffic patterns. By spanning a week, the approach covers diurnal cycles and week/weekend cycles. Recurring events with longer time periods, for example, monthly payroll operations, are less likely to show similarly well-defined patterns.

[0074] A collector 12 should handle relatively high rates of network traffic. As the network grows and traffic volume increases, additional collectors 12 can be deployed in appropriate locations to tap new network traffic.

[0075] Referring to FIG. 7, factors affecting scalability of the Aggregator 14 include the amount of memory consumed by the connection tables and the time required for anomaly analysis algorithms to traverse the connection tables. As a result, connection tables can be distributed across multiple physical hosts. That is, the aggregator 14 can be configured as a cluster of aggregator members 14 a-14 n, such that the aggregator can grow over time to meet additional processing load. Each host record and its associated host pair records have enough information that they can be processed independently by analysis algorithms as discussed below. Information about different hosts can be dispatched to different cluster members 14 a-14 n and identical sets of algorithms run on all the cluster members 14 a-14 n. Furthermore, individual analysis algorithms can be implemented as independent threads, in a multiprocessor platform.

[0076] Referring to FIG. 8, the aggregator 14 also includes analysis processes 39 to detect network events. Such processes 39 can include a process 60 to detect bandwidth denial-of-service attacks, a process 70 to detect scanning and probing intrusions, a process 80 to detect worms, a process 90 to detect unauthorized access, a process 100 to detect new hosts on the network, and a process 110 to detect failure of hosts or routers. Other events can also be detected by addition of corresponding processes.

[0077] Before discussing each of these processes 49 individually, it is useful to focus on common characteristics of these processes 39.

[0078] Referring to FIG. 9, a generic flow process 50 of an event detection process is shown. One characteristic of the generic flow process 50 is that in general the processes are historical and profile-driven. The generic flow process 50 tracks 51 a moving average that allow processes to adapt to slowly changing network conditions without user intervention. The generic flow process 50 also tracks 52 a variance of a parameter to allow the generic flow process 50 to account for burstiness in network traffic. Several of the algorithms can optionally be tuned via constants to alter parameters such as sensitivity. Historical analysis minimizes the amount of tuning that needs to be done. The benefits of historical analysis, therefore, are to decrease management complexity while improving analysis quality.

[0079] The generic flow process 50 operates at two conceptual levels, anomalies and events. The generic flow process 50 finds 53 anomalies, i.e., low-level discrepancies in the network, e.g., a host is receiving unusually high traffic, for example. Conventional intrusion detection would tend to report anomalies directly to the operator. This can be a problem because a single intrusion may correspond to many anomalies, and many anomalies are benign. In contrast, the system 10 using aggregator 14 collects anomalies into events 54. The operator is sent 55 event reports giving the operator more concise and useful information, while simplifying system management.

[0080] Referring to FIG. 10, processes 39 handle events, i.e., high-level occurrences that have significance to a network administrator. The processes 39 distinguish among different classes of events. A general flow 56 that can underlie some of the processes 39, discover events by traversing 56 a the connection table 40 and identifying 56 b and correlating anomalies. From correlated anomalies events are produced 56 c. For example, a DoS attack event may be identified because of an abnormal high level of traffic destined to some set of hosts. The generic flow process 50 examines connection patterns rather than packet signatures. Connection patterns can be more strongly correlated with a particular event.

[0081] Consider a worm. The presence of a worm, such as the NIMDA worm on a network may not be a threat if all hosts have been patched for NIMDA, but those packets will nonetheless generate reports (and potential false positives) from typical intrusion detection. Rather, a tree-like pattern of connections is much more definite proof that an actual worm infection is occurring. In order to decrease false positives, processes 39 look for more reliable evidence of suspicious activity, e.g., determine whether observed anomalies produce events and report the events rather than mere anomalies. The processes 39 determine 56 d event severity as functions of the types, numbers, and severities of anomalies that led to the identification of the event. Events can be sorted by severity, of course, further simplifying management of the network. The processes 39 report 56 e the event.

[0082] Denial of Service Attacks

[0083] Denial of service (DoS) attacks attempt to overload a victim server's resources by sending the victim more data than it can handle, e.g., a large number of packets or a high byte rate or both. In addition, some DoS attacks will randomly spoof source addresses so as to avoid detection, and to confuse any DoS detection tools that may be in place to protect the server.

[0084] Referring to FIG. 11, denial of service detection process 60 detects bandwidth attacks against a host. The denial of service detection process 60 examines 62 both packet count and byte count to determine 63 whether a host is a potential DoS victim. In addition, if a host is determined to be a potential victim, the denial of service detection process 60 iterates 64 over all connected hosts to determine which hosts are possible attackers.

[0085] Referring to FIG. 12, to determine 63 whether a host “H” is a victim of a DoS attack, the process 60 determines 63 a whether or not the host has a historically high variance in inbound packet rate. If the host does not have a high variance the process compares 63 b the current measured inbound byte rate with “H's” historical average inbound byte rate for the current profiled time period. However, if a host has a large variance 63 b in inbound packet and byte rate, the process avoids triggering an alert merely based on byte rate, but rather the process 60 uses 63 c a stored profiled variance, as follows.

[0086] Let “σ²” be the variance of “H's” inbound byte rate, stored in the appropriate profile connection table. Then “σ” is equal to one standard deviation. Let “c” be “H's” current incoming byte rate and “h” be “H's” historical average incoming byte rate. If the inequality (c>(h+C1*ρ)*C2) is true, then process can consider the host H to under a possible DoS attack. To decrease the overhead associated with computing square roots, the process can calculate this in two passes. The first pass determines if “c>h*C2”. If this is true, the process calculates the standard deviation, and uses it as shown. Otherwise, the process can conclude that the inequality that considers standard deviation will also be false, and can skip the complete calculation. “C1” and “C2” are tunable constants. Exemplary values are “C1=2” and “C2=2.” Thus, in either case the process determines 63 d if the parameter (variance or byte rate exceeds a historical amount.

[0087] In addition, the process 60 determines 63 e if incoming packet count is above a certain threshold, to filter out new or low-traffic hosts that suddenly receive a low but still larger than normal amount of traffic. A value of, e.g., 500 to 2000, nominally 1000 packets per second is a reasonable number for this lower bound.

[0088] If these conditions are satisfied, then the process 60 increases 63 f the severity of the reported event. The process 60 reports 63 g the event to the operator (to reflect a high degree of certainty that this is an DOS attack). The process 60 applies a similar inequality to incoming packet rates.

[0089] Other factors that influence whether the event is a DoS attack include whether the suspected victim is receiving traffic from an unusually (relative to historical profile) large number of other hosts, a typical indication of a broadly spoofed attack. Another factor is whether most of the hosts connecting to the suspected victim do not exist in the profile connection table, almost certainly an indication of a spoofed attack. Another factor is whether most of the new traffic to the host is UDP, ICMP, or unknown protocols. Again, this is further proof to corroborate the symptoms of a typical bandwidth DoS attack. All or some of these can be used to elevate the severity of the event.

[0090] Once a host is determined to be a DoS victim, the process 42 examines the host's neighbors to determine which hosts are possible attackers. For each neighbor “H_(—){0}” of “H”, the process determines the byte rate from “H_(—){0}” to “H”. Let “c_(—){0}” be the current byte rate from “H_(—){0}” to “H”, “h_(—){0}” the historical average byte rate from “H_(—){0}” to “H”, and “σ² _(—)0}” the variance of the byte rate from “H” to “H_(—){0}.” If an inequality holds

c _(—){0}>(h _(—){0}+C 1*σ² _(—) {0})* C 2

[0091] then “H_(—){0}” is a suspected attacker of “H”.

[0092] The constants “C1” and “C2” can be the same as above. The process also examines the packet rates from “H_(—){0}” to “H” in a similar way.

[0093] Since a spoofed source address DoS attack could have hundreds or even thousands of different source addresses, the process 60 can cap the number of source addresses that are reported. A reasonable number for the cap is 1000 addresses. If the cap is reached, process raises the severity of the attack reported, as noted above.

[0094] This approach to DoS detection differs from that of other techniques used in intrusion detection systems (IDSs) in several ways. For instance this process 60 measures usual network activity at a per-host level, and bases attack detection on proportional violations of those usual levels. This avoids the need for user-determined thresholds as is common in conventional IDS. Incorrect thresholds cause false positives and major operator costs in practice. Moreover the inclusion of variance in the formula reduces false positives based on network burstiness. “Burstiness” is another user-determined threshold in conventional intrusion detection systems. Since the “attack threshold” is measured per host, the process 60 automatically adapts to different server PROCEDURE DOSDETECTION (host. H) {  avg_p1

H's current average incoming pps  his_p1

H's historical average incoming pps  var_p1

variance of H's incoming pps  avg_b1

H's current average incoming bps  his_b1

H's historical average incoming bps  var_b1

variance of H's incoming bps  if (avg_p1 ≦ C1)   return false  if (avg_p1 ≦ (his_p1 + C2 * {square root over (var_p1))} * C3   and avg_b1 ≦ (his_b1 + C2 * {square root over (var_b1))} * C3)   return false  for each host H0 connected to H   avg_p2

current average pps from H0 to H   his_p2

historical average pps from H0 to H   var_p2

variance of pps from H0 to H   avg_b2

current average bps from H0 to H   his_b2

historical average bps from H0 to H   var_b2

variance of bps from H0 to H   if (avg_p2 > (his_p2 + C2 * {square root over (var_p2))} * C3    or avg_b2 > (his_b2 + C2 * {square root over (var_b2))} * C3)    add H2 to list of attackers  return true }

[0095] capacities. That is, if a server “A” usually handles a small fraction of server B's traffic, then a small attack on server A will cause an event, where that attack might be (properly) left in the noise on server B.

[0096] Exemplary pseudo code for detecting denial of service attacks and determining the host that is attacking is shown above.

[0097] Scanning and Probing Intrusions

[0098] A network scan is a probe by which an attacker learns more about computers on a network and their vulnerabilities. Scans are often caused by intruders trying to gain access, and may be done manually or automatically by an active worm. Two types of scans are ping scans and port scans. A ping scan detects the existence of hosts on a network, while a port scan detects which services are running on a particular host.

[0099] The purpose of a ping scan is to determine the IP addresses of other networked hosts. Packets are sent to many different IP addresses, and hosts that are up respond. A ping scan may use ICMP, TCP, or other protocols. It may iterate over a set of addresses, such as all addresses in a subnet or it may test many random addresses.

[0100] Referring to FIG. 13, the scan detect process 70 tracks ping scans with an application of the connection table 40. Each time a host scans another host, a host pair record is added 71 to the current time slice connection table. At the end of each short update period 72, the scan detect process 70 accesses 73 the time slice connection table 41 to determine 74 new host pairs that the process had not determined before in the profile. The scan detect process 70 sums 75 the number of new host pairs determined and determines 76 if a host has made more than “C3” new host pairs. The process 70 checks if the number of historical host pairs in the profile is smaller 77 by a factor of “C4.” If the historical number is smaller by the factor C4, the host is flagged 78 as a scanner. The constants “C3” and “C4” are adjustable thresholds. This will catch most ping scans since typically a ping scan will scan many hosts in a short time.

[0101] Stealthy ping scans ping the network slowly in order to avoid detection. Because a stealthy scan moves so slowly, the system 10 will produce only a few new host pair records in each SUP. Over time, the scan will still produce many new host pairs. The scan process 70 also checks for ping scans at the end of each long update period, flagging stealthy ping scans which produced more than “C5” new host pairs over the long update period. Thus, the scan detect process 70 detects stealthy ping scans in a reasonable amount of time, although detection does not occur as quickly as with normal ping scans. Essentially, for stealthy scans the process increases the reporting delay in order to decrease false positives.

[0102] Compared with traditional IDS systems, the scan detect process 70 has several advantages. Traditional IDS systems rely on heuristics that could be easily misled, such as looking for incremental IP addresses. Because the history of each host's network traffic is maintained in the connection tables, the scan detect process 70 will not incorrectly declare scans during normal traffic. An IDS that only detects signatures will not be able to distinguish scans from scan-like normal operations. The scan detect process 70 distinguishes normal host interconnections from abnormal ones, so a scan coming from a typically active host will still be detected, since the scan would produce new host inter-connections.

[0103] The scan detect process 70 also detects stealthy scans by looking at the activity of each host over a longer period of time. The scan detection process 70 thus examines host activity over a sufficiently long enough period of time to detect stealthy scans. The scan detect process does not consider the packet type in detecting scans. The scan may use ICMP packets, TCP packets, another protocol, or some combination. Rather, the scan detect process 70 will detect that the scanning host has initiated network communication with an unusual number of hosts.

[0104] A possible extension is to maintain ARP (Address Resolution Protocol) packet statistics to detect ping scans. Ping scans often produce a large number of ARP requests. If the scanner scans a dense subnet on which there are many hosts, the number of ARP requests will be similar to the number of successful “connections.” However, for sparse subnets the host may fail to route many of its packets to their intended destination. In this case it will generate a high level of ARP requests that do not receive responses, and for which the new host will not produce follow-on IP packets. Keeping track of ARP packets would allow the scan detect process 70 to detect scans more quickly and accurately on sparse networks.

[0105] Port Scans

[0106] A port scan determines which ports are listening on a known host, indicating which services are running (port 80 indicates HTTP, port 22 indicates SSH, etc). Port scans use either TCP or UDP protocols.

[0107] Port scans may scan all “2¹⁶” ports or they may only scan a few interesting ports. Port scans may use a variety of different packet types, sizes and flags to try to avoid detection. However, port scans send packets to many different ports, so ports scans can be detected with the connection table 40.

[0108] As discussed, the connection table 40 stores records that have data on protocols and ports used for each host pair. If the number of ports used in the historical profile is considerably smaller (e.g., by a factor “C5”) than the current number of ports, and the current number is greater than some lower-bound threshold (“C6”), then the aggregator 14 will record the anomaly and report a port scan. The reported severity varies as a function of the deviation from historical norm.

[0109] The port scan detection process examines connection-based features of an anomaly rather than attempting to ascertain and develop a signature for a potential attack. The port scan detection process knows which ports hosts communicate with, so it is unlikely that the port scan detection process would declare a port scan for normal traffic. The port scan detection process does not examine the actual structure of the packets. Therefore, a scan may set any combination of TCP flags and the port scan detection process will still recognize it as a port scan.

[0110] Because the aggregator 14 examines data collected over a long period of time, it will detect stealthy scans which are too slow for some conventional IDS systems to recognize.

[0111] An extension of the scan process 70 is to use the connection table statistics about TCP RST packets and ICMP port-unreachable packets. Hosts respond to “failed” TCP probes with RST packets, and to “failed” UDP probes with ICMP port-unreachable packets. A spike in the number of these packets relative to the historical norms could be used to increase the severity of a port scan event. As with ping scans, the scan process 70 checks for port scans at the end of each short update period and each long update period. Normal scans will be quickly caught at the end of the current SUP. Stealthy scans will avoid immediate detection but will be caught later at the end of the long update period (LUP).

[0112] Worm Detection

[0113] Worms are programs that exploit weaknesses in network services to copy themselves to other computers and spread. They typically use ping scans to find new computers to infect. Some worms are so aggressive that they generate high levels of network traffic and cause denial of service attack side effects.

[0114] A worm's activity looks like a ping scan to the process 42. The presence of several ping scans from different hosts in a short time is reason to suspect the presence of a worm on those machines.

[0115] Referring to FIG. 14, the worm detection process 80 retrieves 82 from the connection table 40 information about effects in the network 18 caused by the worm, including the path by which it spread and the services that it is exploiting. The worm detection process 80 examines 83 the host pairs in the scan and reconstructs 84 the path by which the worm spread. The worm detection process 80 examines 85 the ports used by the worm and determines 86 which services were exploited.

[0116] For example, consider the situation in FIG. 15, which represents that scans were detected emanating from hosts “A”, “B”, and “C.”

[0117]FIG. 15 shows that in time period “t₁” host “A” scanned host “a_(i)”, at time “t₂”, host “B” scanned “b_(i)”, and at “t₃”, host “C” scanned “c_(i).” Since, “B=a₂”, and “C=b₆”, the worm detection process determines that a worm has passed from “A” to “B” at time “t₁”, and from “B” to “C” at time “t₂”. The worm detection process also determines that “A” connected to “B” through port 80, and that “B” connected to “C” through port 25, indicating which services are vulnerable.

[0118] Assume that hosts “A”, “B”, and “C” were all flagged for ping scans in time periods “t_(a)”, “t_(b)”, and “t_(c)” respectively, with “t_(a) being less than or equal to t_(c)”. The worm detection process 80 analyzes the scan anomalies for the sets of hosts “S_(a)”, “S_(b)”, and “S_(c)” that hosts “A” “B” and “C” scanned. If host “B” is in “S_(a)”, and host “C” is in “S_(b)”, then the worm detection process determines that the worm spread from host “A” to host “B” to host “C.” The worm detection process 80 examines which port host “A” used to connect to host “B”, and which port host “B” used to connect to host “C.” The process 80 also determines the vulnerable services on each of those hosts. These could be different ports for worms that have the ability to exploit multiple services.

[0119] It is possible for a worm to be stealthy by having the worm only connect to hosts that an infected host normally connects to. Or, if the worm has root access, the worm may listen to the network and discover more hosts. There are no common worms of this form. Also, such a worm could have difficulty spreading since it might not come into contact with many vulnerable hosts. Still, the worm detection process 80 could detect such worms by scanning for unauthorized access anomalies (as discussed below) and connecting the unauthorized access anomalies into a path as it does with scan anomalies.

[0120] Unauthorized Access

[0121] Unauthorized access events occur when one machine makes an attempt to connect to a machine to which it would not normally connect. An example of such an event is a host normally used for engineering research connecting to a server used in a personnel department.

[0122] Referring to FIG. 16, an unauthorized access attempt detection process 90 is shown. The unauthorized access attempt detection process 90 obtains 92 connection pairs for a host that is attempting to gain access to another host from the connection table 40. The unauthorized access attempt detection process 90 determines 94 whether that one host attempting to gain access has accessed the other host previously. If the host has accessed the other host previously, the process 90 does not raise any events and merely continues to monitor accesses.

[0123] If that one host has not accessed the other host, the unauthorized detection process 90 will determine 96 if other anomalies in the connection patterns of each host exist in order to determine how likely it is that this is an instance of unauthorized access.

[0124] Heuristics can be used to increase 96 the severity of a possible unauthorized access event. For example, one heuristic is that connection patterns indicate that the hosts are in roles that are not normal for those hosts. For instance, in the example mentioned above, engineering hosts do not commonly access the personnel server host. Thus, if an engineering host connects to the personnel server, it could indicate that an unauthorized access is being attempted. Another indication is that connection requests use the transport control protocol (TCP). Use of TCP could indicate that someone is trying to access the host to gain or modify sensitive data as TCP is the protocol that is usually used to transfer data. Another indication is that the connections use ports that are not well known (i.e., not used for a common service), indicating a possible Trojan-type virus. Also, if the connections use ports that have not been used before, that could indicate an unauthorized access attempt. Another indicator is if several short connections occur in a short time period (possibly indicative of failed logins). Each of these patterns of connection behavior between two hosts can be determined from examination of connection patterns by analyzing data from the connection table 40.

[0125] Conversely, there are a few rules that will decrease 98 a likely event severity or make a potential event a non-event. One rule is that the hosts are in roles that commonly access each other's hosts. Another rule that can decrease severity is that the host being connected to commonly receives connections from new hosts. This may indicate, for example, that it is a server and new hosts connect to it sporadically. Another consideration is that the connecting host commonly makes connections to new hosts. This could indicate that the host is relatively new, i.e., the new host has appeared on the network recently. In this case, the process 40 will not know the connection habits of the new host. If an event is still indicated, the process 90 will send or raise 99 an event with the proper level of severity to the operator.

[0126] The unauthorized access detection 90 uses role grouping or role classification. In the example above, hosts in the engineering department frequently make connections to machines in a lab. Although all engineering hosts probably do not connect to all lab machines, individual engineering hosts likely would frequently connect to some lab machines. If roles are not considered, an engineering host that connects to a lab host for the first time may trigger an event. However, the engineering hosts will typically be assigned the same role, and lab machines will be assigned another role. By taking host roles into consideration, the unauthorized access detection process 90 understands that an engineering host connecting to a lab machine for the first time is probably not a suspicious event.

[0127] A traditional packet-based IDS has no notion of roles, and tries to detect intrusions based on packet payloads that it detects on a link. This approach can typically generate many false positives on a large network. Alternatively, operators may be able to explicitly define allowable connections or similar policies, but this is a tedious and error-prone process. Furthermore, since most conventional intrusion detection systems are standalone devices deployed on a single link, they may not catch access violations happening elsewhere on the network.

[0128] An example of pseudo-code for estimating the likelihood of a connection being unauthorized is shown below. Constants C₀ through C₁₁ may optionally be tuned to change the weight different factors have on the severity. PROCEDURE UNAUTHORIZEDACCESS (host H1, H2) {  badness

0  if H1 has connection to H2   if H1 has not previously connected to H2    badness

C0    if machines in ROLE(H1) do not commonly     access machines in ROLE(H2)     badness += C1    if connection protocol = TCP     badness += C2    if port on H2 is not well known     badness += C3    if port on H2 has not been used before     badness += C4    if connections are short     badness += C5    if machines in ROLE(H1) commonly     access machines in ROLE(H2)     badness −= C6    if H2 has many connections     badness −= C7    if H1 makes many connections     badness −= C8    if UPTIME(H1) < C9     badness −= (C9 − UPTIME(H1))      (scaled to max C10)    if UPTIME(H2) < C9     badness =− (C9 − UPTIME(H2))      (scaled to max C11)  return badness }

[0129] Detection of New and Failed Hosts

[0130] The process 39 also includes a process 100 that detects when a new host appears on the monitored network and, conversely, a process 110 that detects when a probe (or potentially a router or an entire subnet) appears to have failed.

[0131] Referring now to FIG. 17, a new host detection process 100 is shown. New host detection process 100 receives statistics collected from a host “A.” The new host detection process will consider Host “A” as a new host if, during a period of T seconds, the Host “A” transmits 102 at least N packets and receives 104 at least N packets, and if the Host “A” had never 106 transmitted and received more than N packets in any previous period of duration T. If these tests are met the Host A is indicated 108 as a new host. The emphasis on both transmission and receipt of packets, and the minimal rate of N/T packets/second, attempts to avoid false positives caused by scans or spoofing (e.g., reporting a “new host” when in reality the system detected a packet that was sent to a non-existent host as a result of a scan.

[0132] The “new host” detection process 100 detects and notifies when any host “H” has a minimal threshold amount of receive/transmit traffic no prior history of traffic in the network 18. The process notifies the operator of a new host in the network.

[0133] Failed Host Detection

[0134] Referring to FIG. 18, a failed host detection process 110 is shown. A Host “A” becomes a “candidate” for a failed host analysis if both a mean profiled rate of server response packets from the Host “A” is greater than M 112, and the ratio of (standard deviation of profiled rate of server response packets from the host) to (mean profiled rate of server response packets from the host) is less than R 114. That is, the system 10 analyzes hosts that are uniformly “chatty”, e.g., have relatively high volumes of traffic over regular periods. This analysis avoids false positives for quiet hosts, or hosts with long periods of inactivity. If these two factors are present then the host is flagged as a candidate failed host.

[0135] The failed host analysis determines whether a host generates more than X server response packets per second in a given time slice, and immediately thereafter generates no outgoing traffic for at least S seconds. Failed hosts expire (they become “non-existent”) after some period D seconds of continuous inactivity. The aggregator 14 will generate a new host event if a failed host comes back online after this time has elapsed.

[0136] A host failure can be considered as the inability to generate traffic on the network. It can also be applied to detect application failures (e.g., an HTTP server crashed).

[0137] Grouping

[0138] Referring to FIG. 19, intrusion detection system 10 as in FIG. 1 includes collectors 12 and an aggregator 14. System 10 detects and deals with security violations in large-scale enterprise networks 12 including a large plurality of computers and other devices such as switches, routers, etc, e.g., “hosts” 20, spread over different geographic locations. The probes 12 and aggregator 14 operate generally as in FIG. 1. In addition, the aggregator 14 executes the grouping process 200 that efficiently partitions hosts 20 on the network 18 into groups in a way that exposes the logical structure of the network 18.

[0139] The grouping process 200 assigns nodes to groups and includes a classification process 200 a that classifies hosts by groups and a correlation process 200 b that correlates groups. The classification process 200 is based upon analyzing connection behaviors of hosts and partitions hosts based upon the role that the hosts play in the network 18. The correlation process 200 b correlates the groups produced by different runs of the classification process 200 b. The two processes 200 a, 200 b form groups of hosts that have a strong degree of similarity in connection habits and roles in the network. The grouping process 200 provides a mechanism to merge groups and gives network administrators fine-grained control over merging, so that meaningful results can be provided to an administrator. In addition, the grouping process 200 can handle transient changes in connection patterns by analyzing profiled data over long periods of time. The grouping process 200 responds to non-transient changes in patterns of communication by producing a new partition and provides a useful description of the relationship of the new partition to the previous partition. Execution of the process 200 reduces the number of logical units with which a network administrator deals with, e.g., by one or two orders of magnitude.

[0140] Referring to FIG. 20, a partitioning of computers into groups that the aggregator 14 might produce based on observed communication patterns at the probes 12 is shown for the enterprise network 18. In FIG. 20, a line indicates that end nodes communicate regularly and dashed circles represent group boundaries. The connection patterns might indicate that Sales-1 to Sales-N nodes communicate with three servers: Mail server, Web server, and Sales Database server. Similarly the patterns might indicate that Eng-1 to Eng-M nodes communicate mostly with Mail server, Web server, and Source Revision Control server. Based on this information the grouping process 200 executed on, e.g., the aggregator 14 logically divides all the hosts into five groups as shown. One group is a sales group having hosts Sales-1 to Sales-N, a second group is engineering group having host Eng-1 to Eng-m. The other groups are a common server group having Mail and Web servers, sales server group having Sales Database server and engineering server group having Source Revision Control server.

[0141] A network manager can label each identified group with descriptive roles and set policies per group. The grouping process 200 continuously monitors communication patterns among the hosts and adjusts groups as computers are added and deleted from the network. In addition, the system flags policy violations, and raises alerts about potential security violations. Because information is presented on the level of groups (instead of individual hosts), a network manager is able to understand and process the changes of the network and alerts more easily.

[0142] In FIG. 20 that there are three server groups. The grouping process 200 does not necessarily combine the Sales Database group with the common server group of Mail and Web servers. This separation takes into consideration that the Sales Database server does not communicate with the hosts in the engineering group whereas the Mail and Web servers do. This distinction might be important in recognizing an intrusion detection event. For example, if a host in the engineering group were to suddenly start opening connections to the Sales Database server it might be a cause for alarm.

[0143] Role classification, or grouping, can be thought of as a graph theory problem. From the connection sets of I, role grouping generates a neighborhood graph, nbh-graph, where each node represents a host, and each edge with weight e represents that there are e common (one-hop) neighbors between the hosts. An undirected graph representation can be used since most communications between hosts is bi-directional.

[0144] One approach to the grouping problem is to treat grouping as a k-clique problem where the nbh-graph is partitioned into cliques of size k in which each edge in the clique has a weight greater than or equal to some constant c. Once a k-clique is identified, all the nodes in the k-clique are assigned to one group, since they all share at least c common neighbors. This approach is problematic, because the k-clique problem is NP-complete, that is it is solvable in exponential time. Moreover, requiring that all hosts in a group be one-hop neighbors may be too strong of a requirement.

[0145] Another approach is to treat grouping as related to the problem of identifying bi-connected components (BCCs). A BCC is a connected component in which any two edges lie in a simple cycle. Hence, to disconnect a BCC, one needs to remove at least two edges. Unlike the k-clique problem, BCC can be solved in O(V+E), where O is the order, V and E are the number of nodes and edges in the graph respectively. Moreover, all nodes in the BCC need not be connected to each other directly. However, forming groups simply based on similarity measures between host pairs may result in a partition that has more groups than desired, therefore after execution of a group formation process the grouping process executes an process that merges groups with similar connection habits.

[0146] Referring to FIG. 21, the grouping process 200 has two phases a group formation phase 200 a and a group-merging phase 200b. In the group formation phase 200 a, the goal is to identify groups each of which has one or more hosts with similar connection habits, and assign a unique integer identifier to each group. The group formation phase 200 a may end up producing a large number of groups. The goal of the second phase 200 b is to merge group pairs with similar connection habits to form larger groups. By merging similar groups, the group merging phase 200 b produces results that more closely match the kind of partitioning that system administrators may find useful. The group merging phase 200 b can be controlled in a fine-grained manner by setting the minimum similarity threshold required before two groups are merged to form a larger group.

[0147] Group Formation

[0148] Referring to FIG. 22, a group forming process 200 a for grouping hosts is shown. The group forming process 200 a produces groups based on observed connection patterns amongst the grouped hosts. Hosts as used herein can include computer systems, as well as other network devices. The grouping process 200 a uses two types of representations of the network, connectivity graphs and k-neighborhood graphs. Initially, with a connectivity graph, each vertex of the connectivity graphs represents a host and an edge between vertices denotes a one-hop connectivity between corresponding hosts. From this connectivity graph, the grouping process constructs 212 a k-neighborhood graph. The grouping process 200 a identifies 214 bi-connected components (BCC) in the k-neighborhood graph, and assigns 216 a group of nodes in one BCC to a new group. When a set of hosts is placed into a group, the vertices representing those hosts are removed 220 from the connectivity graph and replaced 222 by one vertex representing the entire group. There are edges connecting the new vertices to each node to which one of the hosts in the group was connected. The group forming process 200 a is repeated 224 until the groups are large enough, e.g., approach the values of C1.

[0149] Referring to FIG. 23, a detailed implementation 230 of the grouping forming process 200 a is shown. The group forming process 200 a generates 232 a connectivity graph, “conn-graph” based on observed connection patterns between hosts. For k=k_(max) down to 1, where k_(max) is the maximum number of hosts with which a single host communicates the grouping process iterates 233 over the following until no new groups can be assigned:

[0150] From “conn-graph” the group forming process 200 a builds 234 the k-neighborhood graph “k-nbh-graph.” The group forming process 200 a removes 236 group nodes from “k-nbh-graph” and generates 238 all bi-connected components (BCCs) in “k-nbh-graph.” For each BCC the group forming process 200 a replaces 240 in the “conn-graph” the nodes in g by a new group node of those nodes.

[0151] The group forming process 200 a labels 242 a group “G” by a pair (IDG, KG), where IDG is a unique identifier and KG is K. (KG is used to compute the degree of similarity between groups.) For each ungrouped host h, where h<PK(|C(h)|| and 0<PK<1 the process produces 244 a new group having only h.

[0152] The group forming process 200 a executes iteratively over the conn-graph until no ungrouped node remains or k=0. Multiple bi-connected components (BCCs) may be identified simultaneously and a single node could be a part of several BCCs. In this case, the node becomes a part of a BCC with the largest size. By iterating over k from high to low, the group forming process 200 a associates each host h with other hosts with the strongest similarity.

[0153] Since a bi-connected component (BCC) is not a clique, e.g., a related group, some node pairs in the BCC may not have edges between them and thus each of those node pairs does not share at least k common neighbors. Also any two nodes in the BCC have at least two disjoint paths between them. This is not true for the BCC with two nodes, which is treated as a special case as described above. Thus, the group forming process 200 a identifies the cluster of nodes in which any two nodes form a “circular similarity relationship.” The grouping process handles a “bootstrap” situation that could arise in some cases.

[0154] In some situations, the minimum number of nodes required to form a BCC is two. In general, the minimum number of nodes to form a BCC is 3, since the process does not allow duplicate edges between any two nodes. However, two isolated nodes that are connected by an edge are allowed to form a group. The bootstrap problem occurs when there are hosts with a high number of connections, but no two hosts have many connections in common. In this situation, the first group will not be formed until k is low and the results may not be useful.

[0155] Assume, for example, that the group forming process 200 a is grouping hosts on a small enterprise network with a Windows NT® server and a Unix® server. Assume that every non-server host in the network communicates with exactly one of the two servers. Since the Windows NT® server and the Unix® server are not similar to each other, no groups will be formed until k=1. There will be two resulting groups: one with the Unix® server and those hosts communicating with it, and the other with the Windows NT® server and the rest of the hosts. To prevent this, for any ungrouped host h, if k<Pk*|C(h)|, where Pk<Pk the process assigns a group, G=(H). In other words, the group forming process 200 a forms a new group with only h members in the group, if the process finds any other nodes that do not have the number of common neighbors greater than or equal to Pk*C(h). Forming a group in this manner encourages BCCs of smaller size. With a value of Pk=0.6 group forming could work with similar types of networks.

[0156] Referring to FIG. 24, an example of the group forming process 200 a for the network depicted in FIG. 20 is illustrated. The first group is formed when k=M+N, where M is the number of hosts used by sales personnel and N is the number of hosts used by engineers. For specificity, assume that M=N=3. As shown in the FIG. 24, the 6-nbh graph (6=M+N) has two hosts: Mail and Web and the group forming process 200 a groups them in one group. When k=3, the group forming process 200 a identifies two additional BCCs, one BCC having all the sales machines and the other BCC having all of the engineering machines. Because of the bootstrap condition, the group forming process 200 a produces two groups, one having Sales Database and the other, SourceRevisionControl, when K=1<0.6*M.

[0157] Merging Groups

[0158] Referring to FIG. 25, the group merging process 200 b merges two or more groups with similar connection habits into a single group. Group merging can be used to reduce the number of groups. Consider the network in FIG. 20 with the modification that Sales-1 only communicates with Mail and SalesDatabase servers. The group forming process 200 a produces two groups for the sales hosts, one that only has Sales-1 and the other that has the rest of the sales hosts. In some situations this is undesirable. Using a more sophisticated measure of similarity the group merging process 200 b builds on the results generated by the group forming process 32. The group merging process 200 b merges groups that are similar in connection habits, and provides users with the flexibility to have fine-grained control over the process so that more meaningful results can be achieved.

[0159] The group merging process 200 b considers two groups to be similar if they meet a similarity requirement and a connection requirement. The similarity requirement is met if the similarity measure between the two groups exceeds user-defined thresholds. The connection requirement is met if the average number of connections of each group is comparable. This requirement keeps a group with a large number of connections from merging with another group with a much smaller number of connections. Although it is possible to incorporate this requirement in a single similarity measure, for simplicity, two separate measures are described. The group-merging process 200 b iterates 252 over the following actions until no more groups can be merged.

[0160] For each group pair, (G1, G2), that meets 254 the average connection requirement and the similarity requirement, the group merging process 200 b appends 256 a triple (G1, G2, s) to a list gnbh-edges, where s-represents the degree of similarity on the scale of 0 to 100. The group merging process 200 b sorts 258 gnbh-edges based on their s—values in descending order. From the top triple (G1, G2, s), the grouping process 200 a forms 260 a new group g=G1ÅG2, and assigns 262 kg to be the minimum number of connection pairs a host in G has. The process 200 a clears 264 the gnbh-edges. TABLE 1 PROCEDURE MEETCONNECTLONREQ(G₁, G₂) { $\begin{matrix} \left. {a1}\leftarrow\frac{\sum\limits_{{h1} \in G_{1}}{C({h1})}}{G_{1}} \right. \\ \left. {a2}\leftarrow\frac{\sum\limits_{{h2} \in G_{2}}{C({h2})}}{G_{2}} \right. \end{matrix}\quad$

if (a1 is within P_(conn) percent of a a2) return true else return false } PROCEDURE MEETSIMILARITYREQ(G₁, G₂) { ${\begin{matrix} \left. {kmax}\leftarrow{\max \quad \left( {K_{G_{1}},K_{G_{2}}} \right)} \right. \\ \left. s\leftarrow{{SIMILARITY}\left( {G_{1},G_{2}} \right)} \right. \\ {{if}\quad \left( {{kmax} \geq {K^{hi}\quad {and}\quad s} \geq \quad S_{g}^{hi}} \right)} \end{matrix}\quad}\quad$

return true; else  if  (kmax < K^(hi)  and  s ≥ S_(g)^(lo))

return true else return false } PROCEDURE SIMILARITY(G₁, G₂) { $\begin{matrix} \left. {c1}\leftarrow{\sum\limits_{h \in {C{(G_{1})}}}{{{WEIGHT}\left( G_{h} \right)}*{{CP}\left( {h,G_{1}} \right)}}} \right. \\ \left. {c2}\leftarrow{\sum\limits_{h \in {C{(G_{2})}}}{{{WEIGHT}\left( G_{h} \right)}*{{CP}\left( {h,G_{2}} \right)}}} \right. \\ {\forall{h \in {{C\left( G_{1} \right)}\bigcap{C\left( G_{2} \right)}}}} \end{matrix}\quad$

$\begin{matrix} \left. s\leftarrow{{WEIGHT}\quad \left( G_{h} \right)*{\min \left( {{{CP}\left( {h,G_{1}} \right)},{{CP}\left( {h,G_{2}} \right)}} \right)}} \right. \\ \left. {gs}\leftarrow{s + {gs}} \right. \end{matrix}\quad$

$\begin{matrix} \left. {gs}\leftarrow{\frac{gs}{\min \left( {{c1},{c2}} \right)} - \left( {R_{d}*\frac{{c1} + {c2} - \left( {2*{gs}} \right)}{{c1} + {c2}}} \right)} \right. \\ {{return}\quad 100*{\max \left( {{gs},0} \right)}} \end{matrix}\quad$

} PROCEDURE WEIGHT(G) { ${return}\quad \frac{K_{G} + {K\quad {{Max}(\quad)}}}{2 + {K\quad {{Max}(\quad)}}}$

}

[0161] Table 1 above depicts pseudo-code for determining the average connection requirement and the similarity requirement. The procedure “MEETCONNECTIONREQ” decides whether the two groups, G1 and G2, meet the connection requirement and G1 and G2, meet the connection requirement if the average number of connected host pairs of each group is within Pconn percent of each other, where Pconn is between 0 and 1.

[0162] “MEETSIMILARITYREQ” determines whether the two groups meet the similarity requirement. Groups G1 and G2 meet the similarity requirement if the similarity measure between them exceeds the user-defined threshold. For the reasons explained shortly, two thresholds, Shi. and Slo are used, depending on whether max(KG1, KG2)>Khi or not. The value “Khi” is a constant that is used to determine whether a particular k value is “high.” Recall that kg is the maximum number of one hop common neighbors that hosts in G share when forming the group. The values Shi and Slo (Shi.>Slo) are the similarity thresholds that can be set by the users to control the merging process. The condition (Shi.>Slo) is necessary since merging two groups could change the relations between other groups and may force additional merges of groups, which may not be desirable. The effects of a group merge depend on the particular groups that are merged and how the merged groups relate to other groups. In general, merges of groups with high k values could lead to undesirable results.

[0163] Using the groups in the network in FIG. 20 if N is large, the similarity measure between the “SalesDatabase” group and the Mail and Web group will be large. Similarly, for large x, the “SourceRevisionControl” group will be similar to the Mail and Web group. If all three groups were to merge, it will effectively cause the Sales group and the Engineering group to merge, resulting in a partitioning of two groups, one having all the servers and the other group having the remainder of the hosts.

[0164] In most situations such a partition would be undesirable since the network administrators lose important separation, e.g., between the Sales hosts and the Engineering hosts. For these reasons, groups with high k values are also required to have a higher similarity measure to merge. The goal in computing similarity measure is to ensure that groups with strong similarity in their roles (in terms of connection patterns) yield a large measure. Guidelines can be used in computing the similarity measure between groups including favoring groups that form a subset relation and favoring groups that have similar average numbers of connections.

[0165] “SIMILARITY” computes the similarity measure “g_(s)” between the two groups, G1 and G2, on a scale of 0 to 100. CP(h, G) returns the total number of connections between h and hosts in G. The ∀ loop computes the sum of the minimum number of weighted connections that the two groups have with each of their common neighbor. For each neighbor h of G, the connection between h and G is weighted according to the properties of the group that h belongs to (denoted by Gh).

[0166] The final similarity measure includes two terms. The first term is the ratio of the sum computed earlier to the minimum of the number of weighted connections that each group has. Thus, if a group is a proper subset of another group, the first term will evaluate to 1. The second term encourages the groups that have similar average numbers of connections by penalizing those groups with drastically different numbers of connections, (e.g., weighting them not similar). The value Rd is set to 0.4. Since the first term varies from 0 to 1, the combined similarity measure g_(s) could be negative. For simplicity, the similarity measure is between 0 and 100 inclusively.

[0167] For the purpose of comparing connection sets, some groups should be deemed more valuable as a neighbor than some other groups. For instance, a connection with a server group is considered more valuable than a connection with a non-server group. A group is considered to be server-like if it has a high k value. A high k value actually implies that the group's average number of connections is high. A procedure WEIGHT calculates the weight of a group based on its k value. The weights are normalized between 1 and 2. K_(MAX) returns the maximum k value assigned to any group. Whenever a new group G is formed as a result of combining two existing groups, KG is set to be the minimum number of connection pairs a host in G has. Other ways to calculate the k value of the new group are possible.

[0168] Model

[0169] Let I be the set of hosts in an enterprise network. The role grouping process uses “|I|” to denote the number of hosts in I. Let similarity be a commutative function from pairs of hosts in I to an integer greater than or equal to Q. Thus, if similarity (h1,h2) is high, then the grouping process should place hosts h1 and h2 in the same group. Techniques to define similarity so that it is both efficient to compute and yields a logical grouping are discussed below.

[0170] A partitioning P of I respects similarity if for all distinct groups:

Similarity(h 1,h 2)≦similarity(h 1,h 3)

similarity(h 1,h 2)≦similarity(h 2,h 3)

[0171] Extending this definition of similarity to define the average similarity between a host h1 and a group G2, avg similarity (h1, G2) is the ratio of the sum of the similarity between h1 and each h2∈G to the number of hosts in G2.

avgsimilarity(h 1,G 2)=Σh 2Σ_(h2∈G)similarity(h 1,G 2)/|G 2|

[0172] A partitioning P of I respects average similarity if ∀h∈G and G1∈P if the average similar of (h,G) is greater than or equal to the average similarity of (h, G1). Similarity or average similarity is not sufficient to generate a useful partitioning of I, since a partitioning that puts all the nodes in one group or one that puts each node in a separate group can be based on similarity. The process has a parameter that can be used by network administrators to control how aggressive role grouping process is in partitioning nodes into groups.

[0173] Let S_(h), the similarity threshold, be an integer greater Q. A partitioning of hosts into groups respects similarity and S_(h), if the partitioning respects similarity and if, for h1 and h2 in G, similarity(h1,h2)≧Sh.

[0174] A partitioning P of I is said to be maximal with respect to similarity and S_(h) if the partitioning P of I respects similarity and S_(h) and there does not exist another partitioning of I that respects similarity and S_(h) and has a larger average group size. By increasing S_(h), the grouping provides a maximal grouping with fewer groups in which the members of each group are more similar to each other.

[0175] Defining Similarity

[0176] Role grouping of hosts is based on connection habits between hosts. Similarity is defined in way that captures the extent to which pairs of nodes establish connections with each other. The role grouping process defines similarity between hosts as a function of the number of common hosts with which the pair of hosts communicate. A connection is a pair having a source host address and a destination host address. The connection set of a host, (CH) is the set, {a|a∈I and there is a connection between h and a}. If h1∈C(h2), then h2∈C(h1). A relation neighbor (h1,h2) is defined to be true if and only if h1=h2 or h1∈C(h2). For later use, a neighbor to groups is extended by defining neighbor (G1,G2) to be true if and only if there exists a host h1∈G1 that is a neighbor of another host h2∈G2.

[0177] The notion of a connection set provides a simple definition of similarity:

similarity(h 1, h 2)=|C(h 1 ∩C(h 2)|  (1)

[0178] That is, similarity h1, h2 is equal to the number of one hop neighbors that hosts h1 and h2 have in common. The requirements of a grouping process can be specified. Given a set of hosts, I and a similarity threshold, S_(h), the grouping process finds a partitioning, P of I that is maximal with respect to average similarity and S_(h), i.e., that P respects average similarity. This constraint guarantees that each host is within the group with which it has the strongest average similarity (∀h∈G and G1∈P, avg similarity (h,G)≧Sh). This guarantees that each host in a group is sufficiently closely related to every other host in the group, ensuring that groups are not too large and that there is no other partitioning P of I that meets the first two requirements and has a larger average group size. This guarantees that groups are not too small.

[0179]FIG. 24 above shows the evolution of the grouping process at various k values. Note that this is independent of the definition of avg_similarity. For some networks, e.g., the one represented in FIG. 19, the above definition of avg_similarity may provide good results.

[0180] Role Correlation

[0181] Over time, connection habits may evolve as new servers and clients are added to a network while some existing hosts (servers and clients) leave the network. Sometimes hosts may behave erratically as a result of being victims or villains of denial of service (DOS) attacks. Due to any of these behaviors and others, the grouping process 30 may produce a drastically different set of groups than a grouping produced by the process a few days previously. As explained, the grouping process 30 assigns an integer ID to each group of hosts that it identifies. There is no guarantee that the sets of IDs produced by different executions of the grouping process will have any correlation between them. This is clearly undesirable to the users who may want to associate logical names and configurations to the group IDs and preserve these group specific data throughout the executions of the grouping process.

[0182] Referring to FIG. 26, a group correlation process 270 that takes 272 two sets of results produced by the grouping process 200 a and correlates 274 the IDs of one set with those of the other set so that the two groups, one in each set of resulting groups, that have almost identical connection habits will have the same ID.

[0183] The process 270 uses a unique host identifier that does not change. In some implementations the IP address may be used. In others it may not be sufficient when the Dynamic Host Control Protocol (DHCP) is used since a host's IP address may change over time. One solution is to use DNS names as unique identifiers and dynamically update the changes in IP addresses. Other techniques may be used to deal with hosts that have link local IP addresses, which may change periodically.

[0184] The connection habits of a host may change as a result of arrival of new hosts, removal of existing hosts, and role changes by existing hosts. Due to one of these events, some existing hosts may communicate with different sets of hosts and thus, the results of the grouping process 30 before and after these events may be different. For instance, new groups can be formed or existing groups can be deleted. In addition, as the set of members belonging to an existing group changes, the connection set of an existing group changes. The changes affect the hosts directly involved in the aforementioned events and other hosts whose connection habits have not changed. This is because the changes in connection habits of a host also affect the similarity in connection patterns between that host and other hosts.

[0185] Given awareness of every single event that happens between two executions of the grouping process 30, the results of the first execution could be incrementally updated to achieve the new results. However, this is not realistic. The whole purpose of the grouping process 30 is to use the information available in the network and automatically generate grouping results that are meaningful to the users. Hypothetically, if the exact sequence of every single change event that happened between the two executions of the grouping process is known (e.g., by logging changes in a change log), the results of the first execution could be incrementally updated to achieve the new results. Having such a change log, although not impossible, can complicate network data gathering.

[0186] A detailed change log may not lead to correct ID correlations. Consider an example in which two nodes, A and B that are in different groups switch their roles. Assume that node C, which used to communicate with A now communicates with B instead. From the change log, it would seem that the connection habits of both C and B changed, whereas in reality C's logical role never changed. The difficulty here is in distinguishing which changes in connection habits are the primary effects that result in different group formations between the two executions of the grouping process 32. Furthermore, there may also be natural changes in connection habits of many nodes. For instance, an existing server machine may be replaced by two new machines that do load sharing among client machines. The logical roles of the client machines have not changed but their connection patterns have.

[0187] Described below is a role correlation process that does not rely on a change log but rather uses the same set of information made available to the grouping process 32.

[0188] Role Correlation Process

[0189] Referring to FIG. 27, an implementation of role correlation process 270 is shown. The role correlation process 270 compares 282 the results of two executions of the grouping process 30. Let G^(t-1) and G^(t) be the group sets generated by the grouping process at time t-1 and t respectively. The correlation process 270 updates 284 the ID set of G^(t), ID(G^(t)) so that ID(g^(t-1))=ID(g^(t)) where g^(t) is a member of the set G^(t) and g^(t-1) is a member of the set G^(t) if g^(t) and g^(t-1) are considered to be the same group, i.e., if the connection habits of the members of g^(t) and those of g^(t-1) are very similar. The group correlation process correlates 286 the ID(g^(t)) and ID(g^(t-1)) in a manner that allows applications to preserve data specific to a particular group. The role correlation process isolates primary events, such as node arrivals and removals that directly affect the connection habits of groups, identifies nodes that have not changed their neighbors and heuristically computes the similarity between the connection habits of two groups. The role correlation process assigns 288 ID(g^(t))=to ID(g^(t-1)) only if g^(t-1) has the highest degree of similarity with g^(t).

[0190] Referring to FIG. 28, the correlation process 270 removes 290 differences between the two host sets, H^(t) and H^(t-1) so that the correlation process 270 can compare 292 the connection patterns of the hosts. The process computes 294 a set of nodes that existed at time t-1 but have been removed in time t, and a set of nodes that only appear at time t. These two computed sets represent the difference sets between H^(t) and H^(t-1). All new nodes are removed from H^(t) and deleted nodes are removed from H^(t-1). Thus, the changes in the connection set of each host are only as a direct result of changing connection patterns between the host and its neighbors (which existed at time t).

[0191] The process attempts to correlate groups between G^(t) and G^(t-1) by determining 296 the similarity between the connection habits of hosts in each group. To do so, the process identifies the set, H_(same), of nodes that have not changed their neighbors from t-1 to t. For the two groups, g^(t) and g^(t-1), the similarity is computed as follows:

[0192] If both groups have a common host neighbor, nH_(same) is a member of H_(same), then the similarity value is simply the minimum value of the average numbers of connections that g^(t) and g^(t-1), have with nH_(same). For all neighboring nodes nh^(t) nh^(t-1) that are not in nH_(same) the relation between Nh^(t) and g^(t) are considered similar to that between Nh^(t-1) and g^(t-1) if the total number of connections between Nh^(t) and g^(t) is close to the total number of connections between between Nh^(t-1) and g^(t-1). The similarity value between a similar neighbor pair, nh^(t) nh^(t-1), is again computed as the minimum of the average number of connection between N^(ht-1) and g^(t-1) and that between Nh^(t) and g^(t).

[0193] The degree of similarity between g^(t) and g^(t-1) is the sum of the similarity values that g^(t) and g^(t-1) have with their similar neighbors. For all of the groups g^(t) that are a member of G^(t), and groups g^(t-1) that are a member of G^(t-1) that remain uncorrelated, the process determines whether g^(t) and g^(t-1) are similar based on how similar the connection patterns between g^(t) and its neighbor groups are to the connection patterns between g^(t-1) and its neighbor groups.

[0194] To decide whether nh^(t) and nh^(t-1) are similar the process 270 uses the total number of connections between the neighbor host and the group as a factor to decide whether the two groups share similar neighbors. All neighbors of g^(t) that are not in HS_(ame) are sorted in descending order using the total number of connection between the neighbor host and g^(t) as a key. This sorting is repeated for g^(t-1) and its neighbors. The process 270 examines the two-sorted lists. Each list has a pointer, pointing to its first element. The two neighbor hosts that the two pointers point to are compared to see whether the total number of connections each node has with the corresponding group is within a specified threshold. If so, the total similarity value between g^(t) and g^(t-1) is incremented as explained earlier. Otherwise, the process 270 increments one of the pointers that points to the neighbor host with the greater total number connection with the group. The two groups g^(t) and g^(t-1) are considered to be similar only if the degree of similarity between the two groups is greater than the predetermined threshold.

[0195] The aforementioned heuristics are applicable for a relatively small number of changes in the connection habits of the groups. In extreme situations, many groups may still remain uncorrelated. Another process to correlate the remaining uncorrelated groups examines the connection habits between groups. The two groups g^(t) and g^(t-1) are considered similar if C(g^(t)) and C(g^(t-1)) are similar.

[0196] The similarity between group connection habits, as opposed to host connection habits, is used to make the decision 298 on whether the two groups, g^(t) and g^(t-1) are logically similar. The group connection habits of a group g, C(g) are the set of pairs in which each pair (n, ng) is made up of the neighbor group, ng and the total number of connections, n, between g and ng. The technique for determining whether C(g^(t)) and C(g^(t-1)) are similar, is similar to the technique used for determining whether the connection patterns to the neighbor hosts are similar (as discussed above), and thus is omitted for brevity.

[0197] Feedback Mechanism and Graphical User Interfaces

[0198] Referring to FIG. 29, an overview graphical user interface 302 (GUI), provides an operator with an aggregated view of network status. The overview graphical user interface 302 displays a list of events 304 identified by the system 10. Within the list of events 304, the overview graphical user interface 302 shows information such as indicating whether the events are new events and includes parametric information pertaining to the event such as Severity, Date, Time, Duration, Type of event, Source, Destination, and Action Taken. Severity is bucketed into various categories such as low, medium, and high. The severity is determined based on what percentage of an established threshold for issuing an event notification is reached by the event. The type of event can be any of the types of events monitored by the system 10 and can include event types such as “worm propagation”, “unauthorized access”, “DDOS attack” “historical anomaly” and so forth.

[0199] Destination and source fields are populated with IP addresses, as well as, role classification of the host in the network. For instance, for the source on the DDOS attack the source host is shown by an network address “205.14.12.224” and the role is displayed as “(Role 3)”, which could be an assigned role in the system or an alphanumeric or equivalent identification. The destination is similarly identified by network address, e.g., 205.13.132.205 and role, (Role 3). Actions taken can include any of the actions permissible in the system such that the event was “Logged”, as shown or other actions.

[0200] The overview graphical user interface 302 also displays network statistics 306 such as the number of bytes per second and packets per second of each type of protocol observed in the system, e.g., TCP, UDP, ICMP and Other, as noted. The overview graphical user interface 302 displays 308 the highest ranked hosts according to some statistical measure, e.g., by packets per second or other statistical measure.

[0201] Referring to FIG. 30, to view the details of an event, a user can click on the line-item in the overview graphical user interface 302 and launch an event details screen 310. The event details screen 310 provides further detail about events. In particular, the event details screen 310 provides a summary 312 of the anomalies identified as part of the event. In the summary 312 the event severity as well as details such as the Date/Time, Source, Destination, and Protocol used are displayed along with values for these items. Event severity is coded, e.g., by a color or other indicia 313 applied to the event or an icon to attract the user's attention.

[0202] The event details screen 310 also includes an alert action region 314 where a user can “snooze” future alerts related to this event for a fixed period of time (for example, while the event is being addressed). The “snooze” feature can be for selected event types, sourced from “All Roles” for a defined period of time. A control “clear this alert from the Overview Page” will appear if the alert appears on the overview page. That is, the “clear this alert from the Overview Page” can be launched from the Alert Report page on an event that was cleared from the overview page.

[0203] An event details region 316 of the event details screen 310 depicts those anomalies that were used to classify the event. For instance in FIG. X1, the event details screen 310 displays what has happened, i.e., current statistics on anomalies detected and historical values for these anomalies, such as the anomalies that a probe is experiencing.

[0204] A significant and rapid increase in Bytes Per Second (based on historical values) and can actual identify the probe, e.g., “Probe 3: 4308 BPS normal and 200000 BPS current.” A similar measure can be provided for packets per second as shown.

[0205] In addition, in the illustrated example, “252” occurrences of the anomaly of the type: “A host attempted to connect with multiple other hosts rapidly” occurred. The event details region 316 indicates that the hosts, e.g., Host “1.2.3.4” if operating under a normal connection rate would have historically had two (2) connections/minute attempted, the whereas the operator can observe the much higher rate of 20 connections/min and can take action based on the connection rate. For instance, the event details region 316 allows a user to select “details” that will show details about the selected anomaly. For example, if the user clicks on the first “details” link in the list, the user is presented with the list of IP addresses to which the host attempted to connect.

[0206] Referring to FIG. 31, a process 319 to minimize false assertions of alert conditions and train algorithms to recognize when anomalies should or should not be classified as events is shown. The process provides 319 an operator with a list of events identified by the intrusion detection system. Within the list of events is information that indicates event severity, with severity determined based on an event having a percentage relationship to an established threshold for issuing an event notification, as discussed above. The information can be provided by the overview graphical user interface 302. The overview graphical user interface 302 displays the list of events. Selecting 319 b one of the listing of events launches the event details screen 310 displaying details of a selected one of the events to a user. The user can “snooze” 319 c future alerts related to the selected event by selecting the snooze control in the event details screen 310. Future alerts related to the selected event can be snoozed for a fixed period of time. The snooze control allows a user to select event types and roles. The event details screen 310 allows a user to clear a selected alert from the list of events and displays event details including anomalies that were used to classify the event. The event details screen 310 indicates normal operating conditions of a host and current operating conditions of a host to allow the operator to take action. Examples of the operating conditions displayed include normal and current connection rates of the host, packets per second (PPS) and bytes per second (BPS) and so forth.

[0207] The process can display network statistics and display a ranking of hosts in the network according to a network statistical measure. The network statistical measure can be a number of bytes per second and/or packets per second of each type of protocol observed in the system.

[0208] The event types include worm propagation, unauthorized access, denial of service attacks, and historical anomaly detections. Other event details that can be displayed include destination and source fields populated with IP addresses and role classification of the host in the network.

[0209] Reports

[0210] Referring to FIGS. 32-36, the system provides reports including the following: “an event history report” 320, “a host profile statistics report” 330, “a role profile statistics report” 340, and “a probe profile statistics report 350.”

[0211] Referring to FIG. 32, the event history report 320, depicts similar information as in the top portion 322 of the overview GUI 300 (FIG. 29). The event history report 320 also includes a “time widget tool” 324, which allows a user to select a time range over which to base the report. As with the overview interface 300, clicking on a specific alert will pop up the event details screen 310. This report allows the user to search all of the events triggered during the specified time period.

[0212] Referring to FIG. 33 a host profile report 330 is shown. The host profile report 330 includes a search region 332 that allows a user to search for a particular host by entering an exact IP address (in which case, the profile information appears directly or specifying a CIDR block and selecting the host from a list of IP addresses matching that CIDR block that have been seen on the network. Also the search region 332 of the host profile report 330 has a field 332 b that allows a user to specify a role and select the host from a list of IP addresses within that role. A user can specify a CIDR block and Role and select a host from a list of IP addresses within that role and CIDR block. This report shows in a first list 334 traffic statistics for the selected host and in a second list 336 traffic statistics for traffic between that host and its peers. By clicking on a details link 337, the user will see more detailed traffic statistics for the traffic between the host and the selected peer.

[0213] Thus, a search for the IP address “26.231.0.0/16 yields the IP addresses and packet per second rates as in Table 2: TABLE 2 IP address In Out 26.231.34.1  0  0 26.231.34.2  1k 500 26.231.34.3  0  0 26.231.34.4  0  0 26.231.34.5 500k  20k 26.231.34.6  36k  10k

[0214] Clicking on one of the entries depicts the profile for that IP address, (e.g., 26.231.34.5) will launch the profile shown in the FIG. 32 indicating that the profile for “26.231.34.5” indicates that the host “26.231.34.5” is a member of “Employee Desktops” role, and will depict totals of traffic into the host and out of the host in table 364 and flow statistics in table 366. Clicking on a peer shows the profile for that peer host. Clicking on the details link pops up the connection (a→b and b→a) statistics for the peer.

[0215] Referring to FIG. 34 a role profiles alert report 340 is shown. The role profiles alert report 340 includes a field 341 that selects a role to evaluate. The role profiles alert report 340 depicts for a specific role traffic statistics for the role in a table 342, traffic statistics for the hosts within the role in a table 344, and traffic statistics for traffic between the role and its peer roles a table 346. By clicking on a details link 345 in table 344 or a details link 347 in table 346, the user can see more detailed traffic statistics for traffic between the role and the selected peer role.

[0216] Referring to FIG. 35, a role profile report for a probe 350 is depicted. The role profile report for a probe 350 is provided by selecting a probe from a dropdown list 352 on the left side of the report 350. The user may view the traffic statistic for that probe on a protocol and in/out basis for bytes per second (BPS), packets per second (PPS) and connections per second (CPS) in table 354.

[0217] Referring to FIG. 36, roles are provided by a role grouping process as described above. The system 10 includes an interface 380 for manually defining roles and assigning defined roles to sets of hosts. To make the process efficient in large networks, the system 10 has an automated role discovery process. The system collects data from the network, analyzes the behavior of different devices and assigns devices with similar behavior, e.g., connection behavior to the same role. Once discovered, roles can be renamed or otherwise changed by the operator. When a new device appears on the network, if it matches some known role, it can be automatically assigned to that role.

[0218] The interface 380 allows role assignments to be “User selected” or “automatic.” The interface 380 displays a list 382 of roles, and by selecting one of the roles, the interface 380 displays a second list 384 of assigned hosts to the particular role, along with the host's IP address. The interface 380 includes controls 385 “Add”, “Remove”, “Modify”, and “New” which allows roles to be edited or added to.

[0219] The interface 380 also displays a list 386 of unassigned hosts and provides proposed assignments 387 of roles to the unassigned hosts, indicates that a new role needs to be produced, or that a newly discovered host is being evaluated. Controls 388 “Add”, “Remove” and “Add to proposed role” control the addition of hosts in the unassigned list 386 to the roles depicted in list 382. Also, the Remove control in control set 388 allows the interface to remove a previously assigned host and place that host in the unassigned list 386. Done closes the interface 380.

[0220] Referring to FIGS. 37-40, sensitivity level settings are set at different sensitivity levels for different roles per event type.

[0221] Referring to FIG. 37, various event types are depicted in the window that provides a region where event detection settings can be set. For instance, for a worm propagation event the event status rules for worm propagation can be viewed or edited. For instance, detection can be enabled for various heuristic-specific settings. The window allows a user to select an event type, and for that event, set the global, heuristic-specific variables. The system can have reasonable defaults for these parameters. Also, the window allows the user to set role-specific thresholds for low, medium, and high severities.

[0222] Referring to FIG. 38, a setup screen allows general settings such as specifying where to send SNMP traps to, details of the overview screen and frequency of profile periods over which to collect a new profile.

[0223] Referring to FIG. 39, a screen 420 provides automation options that allows for role management or role assignment. The user can have the system recommend an assignment but disable auto-assign, or can have the system use auto-assign to assign new hosts to the role that best matches the host's behavior. The interface can select the amount of time over which to monitor a host's connection behavior in order to determine role match. These settings allow the user to adjust the automation rules for assigning roles to groups.

[0224] Referring to FIG. 40, a user management screen 430 allows the user to add, modify, and remove users. Users can be granted various permissions including User Level Permissions, monitor and operator. The administrator can change any setting. The operator level allows the user to snooze alerts.

[0225] A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A method of correlating different results of role grouping, comprises: receiving two sets of grouping of nodes on a network, grouping of the nodes according to connection characteristics of the nodes in the groups, each of the sets having associated identifications; and correlating associated identifications of one set with those of the other set so that the two groups have the same identification, if the member hosts of each set of groups have nearly identical connection habits.
 2. The method of claim 1 wherein correlating uses a unique host identifier that does not change.
 3. The method of claim 2 wherein DNS names are the unique identifiers and changes in IP addresses are dynamically updated.
 4. The method of claim 1 wherein role correlating further comprises: comparing the received results grouping process; updating the identification set of members in the groups so that ID of member in one set are equal to identification of members of if the members of one set and the other set are considered to be the same group.
 5. The method of claim 4 wherein members one set and the other set are considered to be in the same group if, the connection habits of the members of one set and those of the other set are similar.
 6. The method of claim 5 wherein correlating further comprises: eliminating differences between the two host sets so that connection patterns can be compared.
 7. The method of claim 6 wherein differences are the set of nodes that existed in one set but were removed in the other set, and the set of nodes that only appear in the other set.
 8. The method of claim 1 correlating groups comprises: checking similarity between the connection habits of hosts in each group.
 9. The method of claim 8 wherein correlating further comprises: identifying the set of nodes that have not changed their neighbors from between different executions of the role grouping and determining similarity by: determining if both groups have a common host neighbor assigning a similarity value as the minimum value of the average numbers of connections that members of the groups, have with the common host neighbor.
 10. The method of claim 1 wherein for neighboring nodes that are not in the same group, the method comprises: determining if a relation exists between the members if the total number of connections between members of one group are similar to the total number of connections between members of the other group.
 11. The method of claim 1 wherein similarity between members in the groups is related to the sum of similarity values that the members in one group have with their similar neighbors in the other group.
 12. The method of claim 1 wherein for members of the group that remain uncorrelated, the method comprises: determining whether the uncorrelated members are similar based on how similar the connection patterns between a host in one group and its neighbor groups to those between a host in the other group and its neighbor groups.
 13. The method of claim 12 wherein to determine whether uncorrelated hosts are the total number of connections between the neighbor host and the group is used as a factor to decide whether the two groups share similar neighbors.
 14. The method of claim 13 further comprising: sorting in descending order all neighbors of a member that are not in the same set of hosts are using the total number of connection between the neighbor host and the member as a sort key.
 15. The method of claim 14 wherein sorting is repeated for the member of the other group and its neighbors; and the method further comprises: examining two sorted lists to determine whether the total number of connections each node has with the corresponding group is within a specified threshold.
 16. The apparatus of claim 15 wherein the two groups are considered to be similar if the degree of similarity between the two groups is greater than the predetermined threshold.
 17. The method of claim 15 wherein correlating the remaining uncorrelated groups examines the connection habits between groups.
 18. A computer implemented method, comprises: correlating assigned identifiers associated with groups of hosts on a network that are in a first set of the groups, with assigned identifiers that are associated with groups of hosts on the network in a second set of the groups, so that for the two sets of groups, those groups of hosts in the two sets that have substantially identical connection habits will have the same assigned identifiers.
 19. The method of claim 18 wherein the two sets of groups are produced by different executions of a grouping process.
 20. The method of claim 18 wherein the assigned identifiers are time invariant, unique host identifiers.
 21. The method of claim 18 wherein the assigned identifiers are DNS names used when protocols that change a host's IP address over time are used.
 22. The method of claim 18 wherein correlating further comprises: comparing results of two executions of a grouping process.
 23. The method of claim 18 wherein correlating further comprises: comparing results of two executions of a grouping process; and updating assigned identifiers (ID) of set G^(t), ID(G^(t)) so that ID(g^(t-1))=ID(g^(t)) where g^(t) is a member of the set G^(t) and g^(t-1) is a member of the set G^(t) if g^(t) and g^(t-1) are considered to be in the same group.
 24. The method of claim 18 wherein correlating further comprises: isolating primary events that directly affect connection habits of groups; identifying nodes that have not changed their neighbors; and heuristically computing a similarity measure between the connection habits of two groups; and assigning an assigned identifier (ID), ID(g^(t)) to be equal to an assigned identifier (ID), ID(g^(t-1)) if g^(t-1) has a predetermined degree of similarity with g^(t).
 25. The method of claim 18 wherein correlating further comprises: eliminating differences between the two host sets to compare the connection patterns of the hosts.
 26. The method of claim 25 further comprising: computing a set of nodes that existed at time t-1 but have been removed at time t, and a set of nodes that only appear at time t, to provide two sets of nodes that represent difference sets, so that changes in the connection set of each host are as a result of changing connection patterns between the host and its neighbors that existed at time t.
 27. The method of claim 26 further comprising: checking similarity between the connection habits of hosts in each group, by identifying the set of nodes that have not changed their neighbors from t-1 to t.
 28. The method of claim 27 wherein similarity is a value corresponding to a minimum value of the average numbers of connections that two groups g^(t) and g^(t-1), have with a common host neighbor (nH_(same)).
 29. The method of claim 28 wherein for all neighboring nodes that are not in common host neighbor nH_(same) the relation between neighboring nodes Nh^(t-1) and a group g^(t) is that the connections are considered similar to that between Nh^(t-1) and g^(t-1) if the total number of connections between Nh^(t) and g^(t) is close to the total number of connections between between Nh^(t-1) and g^(t-1).
 30. Apparatus comprises: a processor; a memory; and a computer readable medium storing a computer program product for correlating groupings of nodes in a network, comprising instructions for causing the computer to: receive two sets of results of nodes on a network associated into groups according to connection characteristics of the nodes in the groups, each of the sets having associated ID's; and correlate IDs of one set with those of the other set so that the two groups have the same ID, if the member hosts of each set of groups have nearly identical connection habits.
 31. The apparatus of claim 31 wherein instructions to correlate uses a unique host identifier that does not change.
 32. The apparatus of claim 32 wherein DNS names are the unique identifiers and changes in IP addresses are dynamically updated.
 33. The apparatus of claim 31 wherein instructions to correlate further comprises instructions to: compare the received results grouping process; update the ID set of members in the groups so that ID of member in one set are equal to ID of members of if the members of one set and the other set are considered to be the same group.
 34. The apparatus of claim 33 wherein members one set and the other set are considered to be in the same group if, the connection habits of the members of one set and those of the other set are similar.
 35. The apparatus of claim 31 wherein instructions to correlate further comprises instructions to: eliminate differences between the two host sets so that connection patterns can be compared.
 36. The apparatus of claim 31 wherein instructions to correlate further comprises instructions to: check similarity between the connection habits of hosts in each group.
 37. The apparatus of claim 31 wherein instructions to correlate further comprises instructions to: identify the set of nodes that have not changed their neighbors from between different executions of the role grouping and determining similarity by: determine if both groups have a common host neighbor assigning a similarity value as the minimum value of the average numbers of connections that members of the groups, have with the common host neighbor.
 38. The apparatus of claim 31 wherein similarity between members in the groups is related to the sum of similarity values that the members in one group have with their similar neighbors in the other group.
 39. Apparatus comprises: a processor; a memory; and a computer readable medium storing a computer program product for correlating groupings of nodes in a network, comprising instructions for causing the computer to: correlate assigned identifiers associated with groups of hosts on a network that are in a first set of the groups, with assigned identifiers that are associated with groups of hosts on the network in a second set of the groups, so that for the two sets of groups, those groups of hosts in the two sets that have substantially identical connection habits will have the same assigned identifiers.
 40. The apparatus of claim 39 wherein the two sets of groups are produced by different executions of a grouping process.
 41. The apparatus of claim 39 wherein the assigned identifiers are time invariant, unique host identifiers.
 42. The apparatus of claim 39 wherein the assigned identifiers are DNS names used when protocols that change a host's IP address over time are used.
 43. The apparatus of claim 39 wherein instructions to correlate further comprises instructions to: compare results of two executions of a grouping process.
 44. The apparatus of claim 43 wherein correlating further comprises instructions to: compare results of two executions of a grouping process; and update assigned identifiers (ID) of set G^(t), ID(G^(t)) so that ID(g^(t-1))=ID(g^(t)) where g^(t) is a member of the set G^(t) and g^(t-1) is a member of the set G^(t) if g^(t) and g^(t-1) are considered to be in the same group.
 45. A computer program product residing on a computer readable medium for correlating groupings of nodes in a network, comprising instructions for causing the computer to: receive two sets of results of nodes on a network associated into groups according to connection characteristics of the nodes in the groups, each of the sets having associated ID's; and correlate IDs of one set with those of the other set so that the two groups have the same ID, if the member hosts of each set of groups have nearly identical connection habits.
 46. The computer program product of claim 45 wherein instructions to correlate uses a unique host identifier that does not change.
 47. The computer program product of claim 46 wherein DNS names are the unique identifiers and changes in IP addresses are dynamically updated.
 48. The computer program product of claim 45 wherein instructions to correlate further comprises instructions to: compare the received results grouping process; update the ID set of members in the groups so that ID of member in one set are equal to ID of members of if the members of one set and the other set are considered to be the same group.
 49. The computer program product of claim 45 wherein members one set and the other set are considered to be in the same group if, the connection habits of the members of one set and those of the other set are similar.
 50. The computer program product of claim 45 wherein instructions to correlate further comprises instructions to: eliminate differences between the two host sets so that connection patterns can be compared.
 51. The computer program product of claim 45 wherein instructions to correlate further comprises instructions to: check similarity between the connection habits of hosts in each group.
 52. The computer program product of claim 45 wherein instructions to correlate further comprises instructions to: identify the set of nodes that have not changed their neighbors from between different executions of the role grouping and determining similarity by: determine if both groups have a common host neighbor assigning a similarity value as the minimum value of the average numbers of connections that members of the groups, have with the common host neighbor.
 53. The computer program product of claim 45 wherein similarity between members in the groups is related to the sum of similarity values that the members in one group have with their similar neighbors in the other group.
 54. A computer program product residing on a computer readable medium for correlating groupings of nodes in a network, comprising instructions for causing the computer to: correlate assigned identifiers associated with groups of hosts on a network that are in a first set of the groups, with assigned identifiers that are associated with groups of hosts on the network in a second set of the groups, so that for the two sets of groups, those groups of hosts in the two sets that have substantially identical connection habits will have the same assigned identifiers.
 55. The computer program product of claim 54 wherein the two sets of groups are produced by different executions of a grouping process.
 56. The computer program product of claim 54 wherein the assigned identifiers are time invariant, unique host identifiers.
 57. The computer program product of claim 54 wherein the assigned identifiers are DNS names used when protocols that change a host's IP address over time are used.
 58. The computer program product of claim 54 wherein instructions to correlate further comprises instructions to: compare results of two executions of a grouping process.
 59. The computer program product of claim 54 wherein instructions to correlate further comprises instructions to: compare results of two executions of a grouping process; and update assigned identifiers (ID) of set G^(t), ID(G^(t)) so that ID(g^(t-1))=ID(g^(t)) where g^(t) is a member of the set G^(t) and g^(t-1) is a member of the set G^(t) if g^(t) and g^(t-1) are considered to be in the same group. 